const express = require('express');

const webpack = require('webpack');

const config = require('./webpack.config.js');

const webpackDevMiddleware = require('webpack-dev-middleware');
const compiler = webpack(config);

const app = express();


app.use(webpackDevMiddleware(compiler,{

}));


app.listen(3000,()=>{
	console.log('server is running at 3000')
})
